<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
	<script type="application/javascript">

        $(function(){
            $.get("main/main.html",function(data){
                $("#iframeContent").html(data);//初始化加载界面
            });

            $('#indexMenu li').click(function(){//点击li加载界面
                var current = $(this),
                    target = current.find('a').attr('target'); // 找到链接a中的targer的值
                $.get(target,function(data){
                    $("#iframeContent").html(data);
                });
            });
        });

	</script>
</head>
<body>
<ul class="nav navbar-nav" id="indexMenu">
	<li><a target="main/main.html">首页</a></li>
	<li><a target="new/new.html">新闻</a></li>
	<li><a target="leave/leave.html">留言</a></li>
	<li><a target="download/download.html">资料下载</a></li>
</ul>
<div id="iframeContent"></div>
<a href="jsps/main2.jsp">go to main jsp</a>
</body>
</html>